package com.sysu.ooad.dao;

import java.util.List;

import com.sysu.ooad.entity.Group;
import com.sysu.ooad.entity.Homework;
import com.sysu.ooad.entity.Student;
import com.sysu.ooad.entity.Task;

public interface HomeworkDao {
	public Homework findById(Integer id);
	public void add(Homework homework);
	public void update(Homework homework);
	public List<Homework> findByStudent(Student s);
	public Homework findByTaskAndStudent(Student student, Task task);
	public List<Homework> findByGroup(Group group);
	public List<Homework> findByTaskAndGroup(Task task, Group group);
	
}
